package com.google.android.gms.internal;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeSet;

public class zzaj implements zzm {
    private static boolean DEBUG = zzaf.DEBUG;
    @Deprecated
    private zzar zzbo;
    private final zzai zzbp;
    private zzak zzbq;

    public zzaj(zzai zzai) {
        this(zzai, new zzak(4096));
    }

    private zzaj(zzai zzai, zzak zzak) {
        this.zzbp = zzai;
        this.zzbo = zzai;
        this.zzbq = zzak;
    }

    @Deprecated
    public zzaj(zzar zzar) {
        this(zzar, new zzak(4096));
    }

    @Deprecated
    private zzaj(zzar zzar, zzak zzak) {
        this.zzbo = zzar;
        this.zzbp = new zzah(zzar);
        this.zzbq = zzak;
    }

    private static List<zzl> zza(List<zzl> list, zzc zzc) {
        TreeSet treeSet = new TreeSet(String.CASE_INSENSITIVE_ORDER);
        if (!list.isEmpty()) {
            for (zzl name : list) {
                treeSet.add(name.getName());
            }
        }
        ArrayList arrayList = new ArrayList(list);
        if (zzc.zzg != null) {
            if (!zzc.zzg.isEmpty()) {
                for (zzl next : zzc.zzg) {
                    if (!treeSet.contains(next.getName())) {
                        arrayList.add(next);
                    }
                }
            }
        } else if (!zzc.zzf.isEmpty()) {
            for (Map.Entry next2 : zzc.zzf.entrySet()) {
                if (!treeSet.contains(next2.getKey())) {
                    arrayList.add(new zzl((String) next2.getKey(), (String) next2.getValue()));
                }
            }
        }
        return arrayList;
    }

    private static void zza(String str, zzr<?> zzr, zzae zzae) throws zzae {
        zzab zzi = zzr.zzi();
        int zzh = zzr.zzh();
        try {
            zzi.zza(zzae);
            zzr.zzb(String.format("%s-retry [timeout=%s]", new Object[]{str, Integer.valueOf(zzh)}));
        } catch (zzae e) {
            zzr.zzb(String.format("%s-timeout-giveup [timeout=%s]", new Object[]{str, Integer.valueOf(zzh)}));
            throw e;
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:23:0x0046 A[SYNTHETIC, Splitter:B:23:0x0046] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    private final byte[] zza(java.io.InputStream r6, int r7) throws java.io.IOException, com.google.android.gms.internal.zzac {
        /*
            r5 = this;
            com.google.android.gms.internal.zzau r0 = new com.google.android.gms.internal.zzau
            com.google.android.gms.internal.zzak r1 = r5.zzbq
            r0.<init>(r1, r7)
            r7 = 0
            r1 = 0
            if (r6 != 0) goto L_0x0013
            com.google.android.gms.internal.zzac r2 = new com.google.android.gms.internal.zzac     // Catch:{ all -> 0x0011 }
            r2.<init>()     // Catch:{ all -> 0x0011 }
            throw r2     // Catch:{ all -> 0x0011 }
        L_0x0011:
            r2 = move-exception
            goto L_0x0044
        L_0x0013:
            com.google.android.gms.internal.zzak r2 = r5.zzbq     // Catch:{ all -> 0x0011 }
            r3 = 1024(0x400, float:1.435E-42)
            byte[] r2 = r2.zzb(r3)     // Catch:{ all -> 0x0011 }
        L_0x001b:
            int r1 = r6.read(r2)     // Catch:{ all -> 0x0040 }
            r3 = -1
            if (r1 == r3) goto L_0x0026
            r0.write(r2, r7, r1)     // Catch:{ all -> 0x0040 }
            goto L_0x001b
        L_0x0026:
            byte[] r1 = r0.toByteArray()     // Catch:{ all -> 0x0040 }
            if (r6 == 0) goto L_0x0037
            r6.close()     // Catch:{ IOException -> 0x0030 }
            goto L_0x0037
        L_0x0030:
            java.lang.String r6 = "Error occurred when closing InputStream"
            java.lang.Object[] r7 = new java.lang.Object[r7]
            com.google.android.gms.internal.zzaf.zza(r6, r7)
        L_0x0037:
            com.google.android.gms.internal.zzak r6 = r5.zzbq
            r6.zza(r2)
            r0.close()
            return r1
        L_0x0040:
            r1 = move-exception
            r4 = r2
            r2 = r1
            r1 = r4
        L_0x0044:
            if (r6 == 0) goto L_0x0051
            r6.close()     // Catch:{ IOException -> 0x004a }
            goto L_0x0051
        L_0x004a:
            java.lang.String r6 = "Error occurred when closing InputStream"
            java.lang.Object[] r7 = new java.lang.Object[r7]
            com.google.android.gms.internal.zzaf.zza(r6, r7)
        L_0x0051:
            com.google.android.gms.internal.zzak r6 = r5.zzbq
            r6.zza(r1)
            r0.close()
            throw r2
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.zzaj.zza(java.io.InputStream, int):byte[]");
    }

    /* JADX WARNING: Code restructure failed: missing block: B:100:0x01a5, code lost:
        r2 = "Bad URL ".concat(r2);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:101:0x01aa, code lost:
        r2 = new java.lang.String("Bad URL ");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:103:0x01b2, code lost:
        throw new java.lang.RuntimeException(r2, r3);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:104:0x01b3, code lost:
        r5 = "socket";
        r6 = new com.google.android.gms.internal.zzad();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:106:0x01ba, code lost:
        zza(r5, r2, r6);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:43:0x00c1, code lost:
        r0 = e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:44:0x00c2, code lost:
        r13 = r5;
        r17 = r11;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:61:0x0107, code lost:
        r0 = e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:62:0x0109, code lost:
        r0 = e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:63:0x010a, code lost:
        r7 = r11;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:64:0x010b, code lost:
        r13 = r5;
        r17 = r7;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:65:0x010f, code lost:
        r0 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:66:0x0110, code lost:
        r5 = r0;
        r17 = r11;
        r13 = null;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:67:0x0116, code lost:
        r0 = e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:68:0x0117, code lost:
        r17 = r5;
        r13 = null;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:69:0x011b, code lost:
        r0 = e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:70:0x011c, code lost:
        r17 = r5;
        r10 = null;
        r13 = null;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:71:0x0120, code lost:
        r5 = r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:73:0x0123, code lost:
        r5 = r10.getStatusCode();
        com.google.android.gms.internal.zzaf.zzc("Unexpected response code %d for %s", java.lang.Integer.valueOf(r5), r28.getUrl());
     */
    /* JADX WARNING: Code restructure failed: missing block: B:74:0x013c, code lost:
        if (r13 != null) goto L_0x013e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:75:0x013e, code lost:
        r11 = new com.google.android.gms.internal.zzp(r5, r13, false, android.os.SystemClock.elapsedRealtime() - r3, r17);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:76:0x014e, code lost:
        if (r5 == 401) goto L_0x0177;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:80:0x0157, code lost:
        if (r5 < 400) goto L_0x0163;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:84:0x0162, code lost:
        throw new com.google.android.gms.internal.zzg(r11);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:86:0x0165, code lost:
        if (r5 < 500) goto L_0x0171;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:90:0x0170, code lost:
        throw new com.google.android.gms.internal.zzac(r11);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:92:0x0176, code lost:
        throw new com.google.android.gms.internal.zzac(r11);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:93:0x0177, code lost:
        zza("auth", r2, new com.google.android.gms.internal.zza(r11));
     */
    /* JADX WARNING: Code restructure failed: missing block: B:94:0x0183, code lost:
        r5 = "network";
        r6 = new com.google.android.gms.internal.zzo();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:96:0x0190, code lost:
        throw new com.google.android.gms.internal.zzq(r5);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:97:0x0191, code lost:
        r0 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:98:0x0192, code lost:
        r3 = r0;
        r2 = java.lang.String.valueOf(r28.getUrl());
     */
    /* JADX WARNING: Code restructure failed: missing block: B:99:0x01a3, code lost:
        if (r2.length() != 0) goto L_0x01a5;
     */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Removed duplicated region for block: B:105:? A[ExcHandler: SocketTimeoutException (unused java.net.SocketTimeoutException), SYNTHETIC, Splitter:B:2:0x000e] */
    /* JADX WARNING: Removed duplicated region for block: B:108:0x018b A[SYNTHETIC] */
    /* JADX WARNING: Removed duplicated region for block: B:73:0x0123  */
    /* JADX WARNING: Removed duplicated region for block: B:97:0x0191 A[ExcHandler: MalformedURLException (r0v0 'e' java.net.MalformedURLException A[CUSTOM_DECLARE]), Splitter:B:2:0x000e] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public com.google.android.gms.internal.zzp zzc(com.google.android.gms.internal.zzr<?> r28) throws com.google.android.gms.internal.zzae {
        /*
            r27 = this;
            r1 = r27
            r2 = r28
            long r3 = android.os.SystemClock.elapsedRealtime()
        L_0x0008:
            java.util.List r5 = java.util.Collections.emptyList()
            r8 = 0
            r9 = 0
            com.google.android.gms.internal.zzc r10 = r28.zze()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            if (r10 != 0) goto L_0x0019
            java.util.Map r10 = java.util.Collections.emptyMap()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            goto L_0x003d
        L_0x0019:
            java.util.HashMap r11 = new java.util.HashMap     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            r11.<init>()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            java.lang.String r12 = r10.zza     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            if (r12 == 0) goto L_0x0029
            java.lang.String r12 = "If-None-Match"
            java.lang.String r13 = r10.zza     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            r11.put(r12, r13)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
        L_0x0029:
            long r12 = r10.zzc     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            r14 = 0
            int r16 = (r12 > r14 ? 1 : (r12 == r14 ? 0 : -1))
            if (r16 <= 0) goto L_0x003c
            java.lang.String r12 = "If-Modified-Since"
            long r13 = r10.zzc     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            java.lang.String r10 = com.google.android.gms.internal.zzap.zzb((long) r13)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            r11.put(r12, r10)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
        L_0x003c:
            r10 = r11
        L_0x003d:
            com.google.android.gms.internal.zzai r11 = r1.zzbp     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            com.google.android.gms.internal.zzaq r10 = r11.zza(r2, r10)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x011b }
            int r12 = r10.getStatusCode()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0116 }
            java.util.List r11 = r10.zzp()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0116 }
            r5 = 304(0x130, float:4.26E-43)
            if (r12 != r5) goto L_0x008a
            com.google.android.gms.internal.zzc r5 = r28.zze()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            if (r5 != 0) goto L_0x0069
            com.google.android.gms.internal.zzp r5 = new com.google.android.gms.internal.zzp     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            r14 = 304(0x130, float:4.26E-43)
            r15 = 0
            r16 = 1
            long r12 = android.os.SystemClock.elapsedRealtime()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            long r17 = r12 - r3
            r13 = r5
            r19 = r11
            r13.<init>((int) r14, (byte[]) r15, (boolean) r16, (long) r17, (java.util.List<com.google.android.gms.internal.zzl>) r19)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            return r5
        L_0x0069:
            java.util.List r25 = zza((java.util.List<com.google.android.gms.internal.zzl>) r11, (com.google.android.gms.internal.zzc) r5)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            com.google.android.gms.internal.zzp r12 = new com.google.android.gms.internal.zzp     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            r20 = 304(0x130, float:4.26E-43)
            byte[] r5 = r5.data     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            r22 = 1
            long r13 = android.os.SystemClock.elapsedRealtime()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            long r23 = r13 - r3
            r19 = r12
            r21 = r5
            r19.<init>((int) r20, (byte[]) r21, (boolean) r22, (long) r23, (java.util.List<com.google.android.gms.internal.zzl>) r25)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            return r12
        L_0x0083:
            r0 = move-exception
            r5 = r0
            r13 = r8
            r17 = r11
            goto L_0x0121
        L_0x008a:
            java.io.InputStream r5 = r10.getContent()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x010f }
            if (r5 == 0) goto L_0x0099
            int r13 = r10.getContentLength()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            byte[] r5 = r1.zza((java.io.InputStream) r5, (int) r13)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0083 }
            goto L_0x009b
        L_0x0099:
            byte[] r5 = new byte[r9]     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x010f }
        L_0x009b:
            long r13 = android.os.SystemClock.elapsedRealtime()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            long r6 = r13 - r3
            boolean r8 = DEBUG     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            if (r8 != 0) goto L_0x00ab
            r13 = 3000(0xbb8, double:1.482E-320)
            int r8 = (r6 > r13 ? 1 : (r6 == r13 ? 0 : -1))
            if (r8 <= 0) goto L_0x00e5
        L_0x00ab:
            java.lang.String r8 = "HTTP response for request=<%s> [lifetime=%d], [size=%s], [rc=%d], [retryCount=%s]"
            r13 = 5
            java.lang.Object[] r13 = new java.lang.Object[r13]     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            r13[r9] = r2     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            java.lang.Long r6 = java.lang.Long.valueOf(r6)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            r7 = 1
            r13[r7] = r6     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            if (r5 == 0) goto L_0x00c7
            int r6 = r5.length     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x00c1 }
            java.lang.Integer r6 = java.lang.Integer.valueOf(r6)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x00c1 }
            goto L_0x00c9
        L_0x00c1:
            r0 = move-exception
            r13 = r5
            r17 = r11
            goto L_0x0120
        L_0x00c7:
            java.lang.String r6 = "null"
        L_0x00c9:
            r7 = 2
            r13[r7] = r6     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            r6 = 3
            java.lang.Integer r7 = java.lang.Integer.valueOf(r12)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            r13[r6] = r7     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            r6 = 4
            com.google.android.gms.internal.zzab r7 = r28.zzi()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            int r7 = r7.zzc()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            java.lang.Integer r7 = java.lang.Integer.valueOf(r7)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            r13[r6] = r7     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            com.google.android.gms.internal.zzaf.zzb(r8, r13)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
        L_0x00e5:
            r6 = 200(0xc8, float:2.8E-43)
            if (r12 < r6) goto L_0x0100
            r6 = 299(0x12b, float:4.19E-43)
            if (r12 <= r6) goto L_0x00ee
            goto L_0x0100
        L_0x00ee:
            com.google.android.gms.internal.zzp r6 = new com.google.android.gms.internal.zzp     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            r14 = 0
            long r7 = android.os.SystemClock.elapsedRealtime()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0109 }
            long r15 = r7 - r3
            r7 = r11
            r11 = r6
            r13 = r5
            r17 = r7
            r11.<init>((int) r12, (byte[]) r13, (boolean) r14, (long) r15, (java.util.List<com.google.android.gms.internal.zzl>) r17)     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0107 }
            return r6
        L_0x0100:
            r7 = r11
            java.io.IOException r6 = new java.io.IOException     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0107 }
            r6.<init>()     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0107 }
            throw r6     // Catch:{ SocketTimeoutException -> 0x01b3, MalformedURLException -> 0x0191, IOException -> 0x0107 }
        L_0x0107:
            r0 = move-exception
            goto L_0x010b
        L_0x0109:
            r0 = move-exception
            r7 = r11
        L_0x010b:
            r13 = r5
            r17 = r7
            goto L_0x0120
        L_0x010f:
            r0 = move-exception
            r7 = r11
            r5 = r0
            r17 = r7
            r13 = r8
            goto L_0x0121
        L_0x0116:
            r0 = move-exception
            r17 = r5
            r13 = r8
            goto L_0x0120
        L_0x011b:
            r0 = move-exception
            r17 = r5
            r10 = r8
            r13 = r10
        L_0x0120:
            r5 = r0
        L_0x0121:
            if (r10 == 0) goto L_0x018b
            int r5 = r10.getStatusCode()
            java.lang.String r6 = "Unexpected response code %d for %s"
            r7 = 2
            java.lang.Object[] r7 = new java.lang.Object[r7]
            java.lang.Integer r8 = java.lang.Integer.valueOf(r5)
            r7[r9] = r8
            java.lang.String r8 = r28.getUrl()
            r9 = 1
            r7[r9] = r8
            com.google.android.gms.internal.zzaf.zzc(r6, r7)
            if (r13 == 0) goto L_0x0183
            com.google.android.gms.internal.zzp r6 = new com.google.android.gms.internal.zzp
            r14 = 0
            long r7 = android.os.SystemClock.elapsedRealtime()
            long r15 = r7 - r3
            r11 = r6
            r12 = r5
            r11.<init>((int) r12, (byte[]) r13, (boolean) r14, (long) r15, (java.util.List<com.google.android.gms.internal.zzl>) r17)
            r7 = 401(0x191, float:5.62E-43)
            if (r5 == r7) goto L_0x0177
            r7 = 403(0x193, float:5.65E-43)
            if (r5 != r7) goto L_0x0155
            goto L_0x0177
        L_0x0155:
            r2 = 400(0x190, float:5.6E-43)
            if (r5 < r2) goto L_0x0163
            r2 = 499(0x1f3, float:6.99E-43)
            if (r5 > r2) goto L_0x0163
            com.google.android.gms.internal.zzg r2 = new com.google.android.gms.internal.zzg
            r2.<init>(r6)
            throw r2
        L_0x0163:
            r2 = 500(0x1f4, float:7.0E-43)
            if (r5 < r2) goto L_0x0171
            r2 = 599(0x257, float:8.4E-43)
            if (r5 > r2) goto L_0x0171
            com.google.android.gms.internal.zzac r2 = new com.google.android.gms.internal.zzac
            r2.<init>(r6)
            throw r2
        L_0x0171:
            com.google.android.gms.internal.zzac r2 = new com.google.android.gms.internal.zzac
            r2.<init>(r6)
            throw r2
        L_0x0177:
            java.lang.String r5 = "auth"
            com.google.android.gms.internal.zza r7 = new com.google.android.gms.internal.zza
            r7.<init>(r6)
            zza(r5, r2, r7)
            goto L_0x0008
        L_0x0183:
            java.lang.String r5 = "network"
            com.google.android.gms.internal.zzo r6 = new com.google.android.gms.internal.zzo
            r6.<init>()
            goto L_0x01ba
        L_0x018b:
            com.google.android.gms.internal.zzq r2 = new com.google.android.gms.internal.zzq
            r2.<init>(r5)
            throw r2
        L_0x0191:
            r0 = move-exception
            r3 = r0
            java.lang.RuntimeException r4 = new java.lang.RuntimeException
            java.lang.String r5 = "Bad URL "
            java.lang.String r2 = r28.getUrl()
            java.lang.String r2 = java.lang.String.valueOf(r2)
            int r6 = r2.length()
            if (r6 == 0) goto L_0x01aa
            java.lang.String r2 = r5.concat(r2)
            goto L_0x01af
        L_0x01aa:
            java.lang.String r2 = new java.lang.String
            r2.<init>(r5)
        L_0x01af:
            r4.<init>(r2, r3)
            throw r4
        L_0x01b3:
            java.lang.String r5 = "socket"
            com.google.android.gms.internal.zzad r6 = new com.google.android.gms.internal.zzad
            r6.<init>()
        L_0x01ba:
            zza(r5, r2, r6)
            goto L_0x0008
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.zzaj.zzc(com.google.android.gms.internal.zzr):com.google.android.gms.internal.zzp");
    }
}
